<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>这是ejs模板</title>
    <style>
        table{
            border-collapse: collapse;
        }
        th,td{
            border: 1px #000 solid;
            font-size: 20px;
            padding: 10px;
            text-align: center;
        }
    </style>
</head>
<body>
    <h1>修改学生信息</h1>

    <hr>
    <form action="/update-student?id=<%=student.id%>" method="post">
        <div>姓名：<input type="text" name="name" value="<%=student.name%>"></div>
        <div>年龄：<input type="number" name="age" value="<%=student.age%>"></div>
        
        <div>性别：<input type="radio" name="gender" max="150" min="0" value="男"
            <% if(student.gender == "男"){ %>
                checked="checked"
            <%}%>
            >男
            <input type="radio" name="gender" value="女"
            <% if(student.gender == "女"){ %>
                checked="checked"
            <%}%>
            >女</div>
            
        <div>地址<input type="text" name="address" value="<%=student.address%>"></div>
        <div><button>修改</button></div>
    </form>
</body>
</html>